package com.example.service;

import com.example.api.UserService;
import com.example.api.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

@Service
@Slf4j
public class UserServiceImpl implements UserService {
    @Override
    public String getUserInfo() {
        log.info("请求用户信息 -- getUserInfo");
        return "请求用户信息-- 返回用户信息test";
    }

    @Override
    public User getUserById(String userId) {
        log.info("请求用户信息 -- getUserById");
        return User.builder().userId(Long.valueOf(userId)).userName("江哥").userInfo("牛逼").build();
    }
}
